/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package turnover;

import java.util.LinkedList;
import plan.Plan;
import java.util.List;

/**
 *
 * @author Alberto
 */
public class Company {

    private String name;
    private long CIF;

    
    private List<Plan> plan;

    public Company(String name, long CIF) {
        this.name = name;
        this.CIF = CIF;
        this.plan = new LinkedList();
    }

    public long getCIF() {
        return CIF;
    }

    public String getName() {
        return name;
    }

    public List<Plan> getPlan() {
        return plan;
    }

    public void setPlan(List<Plan> plan) {
        this.plan = plan;
    }

    @Override
    public String toString(){
        return this.getName();
    }

    @Override
    public Object clone() throws CloneNotSupportedException{
        Company clone = new Company(this.name, this.CIF);
        return clone;
    }
}
